package com.demo.component;

public class Client {
    public static void main(String[] args) {

        OrganizationComponent university = new University("北大", "国内最高学府");

        OrganizationComponent college = new College("计算机学院", "计算机学院");
        OrganizationComponent college2 = new College("信息工程学院", "信息工程学院");
        university.add(college);
        university.add(college2);

        OrganizationComponent department1 = new Department("计算机科学与技术", "计算机科学与技术");
        OrganizationComponent department2 = new Department("软件工程", "软件工程");
        college.add(department1);
        college.add(department2);
        OrganizationComponent department3 = new Department("通信工程", "通信工程");
        college2.add(department2);

        university.print();

    }
}
